package com.uwo.commons.configuration.aop.validate.annotation;


import java.lang.annotation.*;

/**
 * 字符串长度设置
 * @author hao.yan
 */
@Documented
@Target({
        ElementType.METHOD,
        ElementType.FIELD,
        ElementType.ANNOTATION_TYPE,
        ElementType.CONSTRUCTOR,
        ElementType.PARAMETER
})
@Retention(RetentionPolicy.RUNTIME)
public @interface Length {

    int min() default 0;

	int max() default 100;

    int code() default 10005;

    String message() default "";

}